home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
CUG187.LZH
/
SAVEDTA.C
< prev
next >
Wrap
C/C++ Source or Header
|
1986-02-21
|
949b
|
27 lines
/*@*****************************************************/
/*@ */
/*@ savedta - save the current DOS DTA for later. */
/*@ */
/*@ Usage: savedta(); */
/*@ */
/*@ returns zero. */
/*@ */
/*@ NOTE: restdta() restores it. */
/*@ */
/*@*****************************************************/
extern unsigned _rax, _rbx, _rcx, _rdx, _rsi, _rdi, _res, _rds;
extern char _carryf, _zerof;
int dtads, dtadx;
savdta()
{
_rax = 0x2f00; /* get dta func */
_doint(0x21); /* call DOS */
dtads = _res; /* segment for dta */
dtadx = _rbx; /* offset for dta */
return 0;
}